package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.Permission;

import java.util.List;
import java.util.Map;

public interface PermissionService extends BaseService<Permission> {

    //根据角色获取授权权限数据
    List<Map<String, Object>> findPermissionsByRoleId(Long roleId);

    //保存角色权限
    void saveRolePermissionRealtionShip(Long roleId, Long[] permissionIds);

    //获取用户菜单权限
    List<Permission> findMenuPermissionByAdminId(Long adminId);

    //菜单全部数据
    List<Permission> findAllMenu();

    //获取用户功能权限
    List<String> findCodeListByAdminId(Long adminId);
}
